import 'package:furaha_mkopo/net/fm_http_model.dart';

class FMEmergencyModel extends FMHttpModel {

  List<FMEmergencyStartedModel>? started;

  FMEmergencyModel({
    this.started
  });

  @override
  FMEmergencyModel fromJson(Map<String, dynamic> json) {
    if (json['started'] != null) {
      started = List<FMEmergencyStartedModel>.from(
          json['started'].map((e) => FMEmergencyStartedModel.fromJson(e)));
    }
    return this;
  }
}

class FMEmergencyStartedModel {

  String? advertisement;
  String? planned;
  String? suspense;
  String? soul;
  String? torturing;
  String? incessant;
  String? relief;
  String? abandoned;
  List<FMEmergencyRetiredModel>? retired;

  FMEmergencyStartedModel({
    this.advertisement,
    this.planned,
    this.suspense,
    this.soul,
    this.torturing,
    this.incessant,
    this.retired,
    this.abandoned,
    this.relief
  });

  FMEmergencyStartedModel.fromJson(Map<String, dynamic> json) {
    advertisement = json["advertisement"];
    planned = json["planned"];
    suspense = json["suspense"];
    soul = json["soul"];
    torturing = json["torturing"];
    incessant = json["incessant"];
    abandoned = json["abandoned"];
    relief = json["relief"];

    retired = List<FMEmergencyRetiredModel>.from(
        json['retired'].map((e) => FMEmergencyRetiredModel.fromJson(e)));
  }


}

class FMEmergencyRetiredModel {
  String? planned;
  String? firm;

  FMEmergencyRetiredModel({
    this.planned,
    this.firm,
  });

  FMEmergencyRetiredModel.fromJson(Map<String, dynamic> json) {
    planned = json["planned"];
    firm = json["firm"];
  }
}